package com.zh.api.controller.goods;


import com.zh.common.base.BaseController;
import com.zh.common.utils.ResultVO;
import com.zh.goods.domain.LabelDO;
import com.zh.goods.service.LabelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-03-05 17:27:56
 */
 
@Controller
@RequestMapping("/goods/label")
@Api("商品标签")
public class GoodsLabelController extends BaseController{
	@Autowired
	private LabelService labelService;

	@ResponseBody
	@RequestMapping(value = "getList", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
	@ApiOperation("获取所有标签")
	public ResultVO getList(){
		//查询列表数据
        Map map=new HashMap<>();
		List<LabelDO> labelList = labelService.list(map);
		return ResultVO.success(labelList);
	}
	

	
}
